package com.ruoyi.project.loan.service;

import com.ruoyi.project.loan.domain.LoanContract;

import java.util.List;

/**
 * 贷款合同Service接口
 *
 * @author ruoyi
 * @date 2025-11-11
 */
public interface ILoanContractService {
    /**
     * 查询贷款合同
     *
     * @param contractId 贷款合同主键
     * @return 贷款合同
     */
    public LoanContract selectLoanContractByContractId(Long contractId);

    /**
     * 查询贷款合同列表
     *
     * @param loanContract 贷款合同
     * @return 贷款合同集合
     */
    public List<LoanContract> selectLoanContractList(LoanContract loanContract);

    /**
     * 新增贷款合同
     *
     * @param loanContract 贷款合同
     * @return 结果
     */
    public int insertLoanContract(LoanContract loanContract);

    /**
     * 修改贷款合同
     *
     * @param loanContract 贷款合同
     * @return 结果
     */
    public int updateLoanContract(LoanContract loanContract);

    /**
     * 批量删除贷款合同
     *
     * @param contractIds 需要删除的贷款合同主键集合
     * @return 结果
     */
    public int deleteLoanContractByContractIds(Long[] contractIds);

    /**
     * 删除贷款合同信息
     *
     * @param contractId 贷款合同主键
     * @return 结果
     */
    public int deleteLoanContractByContractId(Long contractId);
}
